package com.project.system.domain.entity;

import com.project.common.domain.po.DbBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author : [chg]
 * @className : LoanApplicationRecord
 * @description : 借款申请记录实体
 * @createTime : [2025/7/9 11:30]
 */
@Entity
@Data
@Table(name = "tb_loan_application_record")
@org.hibernate.annotations.Table(appliesTo = "tb_loan_application_record", comment = "借款申请记录")
public class HrLoanApplicationRecord extends DbBase {
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '用户ID'")
    private Long userId; // 用户ID
    
    @Column(columnDefinition = "decimal(10,2) DEFAULT NULL COMMENT '资金'")
    private BigDecimal amount; // 资金
    
    @Column(columnDefinition = "int DEFAULT NULL COMMENT '申请状态（1-待审批,2-已批准,3-已拒绝）'")
    private Integer status; // 申请状态（1-待审批,2-已批准,3-已拒绝）
    
    @Column(columnDefinition = "varchar(500) DEFAULT NULL COMMENT '申请说明'")
    private String description; // 申请说明

    @Column(columnDefinition = "varchar(500) DEFAULT NULL COMMENT '审批备注'")
    private String approvalRemark;
}